package day03;

public class OpreDemo3 {
    public static void main(String[] args) {
        int a=5,b=10,c=5;
        boolean b1 = b>=a && b<c;
        System.out.println(b1);//2
        System.out.println(a<b && c<b);//1
        System.out.println(a>b && c>b);//2
        System.out.println(a<b && c>b);//2
        System.out.println(a==c && c!=b);//1;

        System.out.println("---------------------");

        System.out.println(a<b || c>b);//1
        System.out.println(a>b || c>b);//2
        System.out.println(a>b || c<b);//1

        System.out.println("---------------------");

        boolean b2 = !(a>b);
        System.out.println(b2);//1
        System.out.println(!(a<b));//2
        System.out.println(!(c>b));//1

        System.out.println("---------------------");
        boolean b3 = c++>2 && a<b;
        System.out.println(b3);
        System.out.println(c);

        boolean b4 = c++>2 || a<b;
        System.out.println(b4);
        System.out.println(c);

    }
}
